package com.atguigu.day13.morning.m1;

/**
 * @version 1.0
 * @Author 马冰
 * @Date 2024/11/15 8:41
 * @注释
 */
public class Student implements Comparable<Student>{
    String name;
    int age;
    double score;

    public Student(String name, int age, double score) {
        this.name = name;
        this.age = age;
        this.score = score;
    }

    @Override
    public int compareTo(Student o) {
        return this.age - o.age;
    }
}
